package engine.logic.login
{
	import com.greensock.TweenMax;
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.filters.BlurFilter;

	public class BlurTX
	{
		public function BlurTX()
		{
		}
		
		public function removeOut(mc:DisplayObject):void
		{
			TweenMax.to(mc,0.1,
				{	y:mc.y+100,
					onComplete:function():void
					{
						if(mc.parent)
							mc.parent.removeChild(mc);
					},
					blurFilter:{blurX:100, blurY:100}
				});
		}
		
		
		public function addOn(mc:DisplayObject):void
		{
			mc.filters = [new BlurFilter(100,100)];
			mc.y = 100;
			
			TweenMax.to(mc,0.1,
				{	y:0,
					blurFilter:{blurX:0, blurY:0}
				});
		}
	}
}